{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "6760aa4c",
   "metadata": {},
   "outputs": [],
   "source": [
    "import cv2 as cv\n",
    "\n",
    "# flags = [i for i in dir(cv) if i.startswith('COLOR_')]\n",
    "# print( flags )\n",
    "\n",
    "imgRGB = cv.imread(\"data/messi5.jpg\")\n",
    "imgGray = cv.cvtColor(imgRGB, cv.COLOR_BGR2GRAY)\n",
    "imgHSV = cv.cvtColor(imgRGB, cv.COLOR_BGR2HSV)\n",
    "\n",
    "# imgH,imgS,imgV = imgHSV[:,:,0],imgHSV[:,:,1],imgHSV[:,:,2]\n",
    "\n",
    "cv.imshow(\"RGB\", imgRGB)\n",
    "# cv.waitKey(0)\n",
    "cv.imshow(\"Gray\", imgGray)\n",
    "# cv.waitKey(0)\n",
    "cv.imshow(\"HSV\", imgHSV)\n",
    "cv.waitKey(0)\n",
    "\n",
    "cv.destroyAllWindows()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4ee3da58",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "20938c19",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
